package net.dgg.zz.credential.capitalPoolCount.entity;

import net.dgg.zz.common.base.entity.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 资金池记录（记录证书费用申请通过金额以及证书使用金额）
 */
public class CapitalPoolCount extends BaseEntity {

    /**
     * 基本证书id
     */
    private Long baseCertificateId;

    /**
     * 证书编号
     */
    private String certificateNo;

    /**
     * 支出金额
     */
    private BigDecimal payMoney = new BigDecimal(0);

    /**
     * 使用金额
     */
    private BigDecimal hangUpMoney = new BigDecimal(0);

    /**
     * 证书所属事业部
     */
    private Long signOrgId;

    /**
     * 证书所属事业部名称
     */
    private String signOrgName;
    /**
     * 证书类型(普通证书或资质)
     */
    private String generalType;

    /**
     * 订单id
     */
    private Long businessOrderId;

    /**
     * 是否关联证书 0-是 1-否
     */
    private Integer isCertificate;

    /**
     * 基本证书id
     *
     * @return base_certificate_id 基本证书id
     */
    public Long getBaseCertificateId() {
        return baseCertificateId;
    }

    /**
     * 基本证书id
     *
     * @param baseCertificateId 基本证书id
     */
    public void setBaseCertificateId(Long baseCertificateId) {
        this.baseCertificateId = baseCertificateId;
    }

    /**
     * 证书编号
     *
     * @return certificate_no 证书编号
     */
    public String getCertificateNo() {
        return certificateNo;
    }

    /**
     * 证书编号
     *
     * @param certificateNo 证书编号
     */
    public void setCertificateNo(String certificateNo) {
        this.certificateNo = certificateNo == null ? null : certificateNo.trim();
    }

    /**
     * 支出金额
     *
     * @return pay_money 支出金额
     */
    public BigDecimal getPayMoney() {
        return payMoney;
    }

    /**
     * 支出金额
     *
     * @param payMoney 支出金额
     */
    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }

    /**
     * 使用金额
     *
     * @return hang_up_money 使用金额
     */
    public BigDecimal getHangUpMoney() {
        return hangUpMoney;
    }

    /**
     * 使用金额
     *
     * @param hangUpMoney 使用金额
     */
    public void setHangUpMoney(BigDecimal hangUpMoney) {
        this.hangUpMoney = hangUpMoney;
    }

    /**
     * 证书所属事业部
     *
     * @return sign_org_id 证书所属事业部
     */
    public Long getSignOrgId() {
        return signOrgId;
    }

    /**
     * 证书所属事业部
     *
     * @param signOrgId 证书所属事业部
     */
    public void setSignOrgId(Long signOrgId) {
        this.signOrgId = signOrgId;
    }

    /**
     * 证书所属事业部名称
     *
     * @return sign_org_name 证书所属事业部名称
     */
    public String getSignOrgName() {
        return signOrgName;
    }

    /**
     * 证书所属事业部名称
     *
     * @param signOrgName 证书所属事业部名称
     */
    public void setSignOrgName(String signOrgName) {
        this.signOrgName = signOrgName == null ? null : signOrgName.trim();
    }

    public String getGeneralType() {
        return generalType;
    }

    public void setGeneralType(String generalType) {
        this.generalType = generalType;
    }

    public Long getBusinessOrderId() {
        return businessOrderId;
    }

    public void setBusinessOrderId(Long businessOrderId) {
        this.businessOrderId = businessOrderId;
    }

    public Integer getIsCertificate() {
        return isCertificate;
    }

    public void setIsCertificate(Integer isCertificate) {
        this.isCertificate = isCertificate;
    }
}